package com.taiji.dianthus.service.sms;

import com.taiji.dianthus.common.BusinessMessage;
import com.taiji.dianthus.domain.sms.SmsAccount;
import com.taiji.dianthus.domain.sys.DSysUser;

import java.util.Date;

/**
 * @InterfaceName SmsGroupService
 * @Description
 * @Author H.M
 * @Date 2020/7/15
 */
public interface SmsAccountService {

    SmsAccount getInvalidBackAccount();

    SmsAccount getIdByMobile(String addSerial);

    SmsAccount getById(String smsAccountId);

    void updateUseTimeById(String id, Date date);

    SmsAccount getInvalidBackAccountOutCall();

    BusinessMessage list(Integer pageSize, Integer currentPage, String name, String addSerial);

    BusinessMessage saveAccount(SmsAccount smsAccount, DSysUser dSysUser);

    BusinessMessage deleteById(String id);

    BusinessMessage checkAddSerial(String baseNumber, String extendNumber, String id);
}
